package com.haoze.common.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * TASK_NODE_CONDITION
 * @author 
 */
@Table(name = "IDR.TASK_EXECUTE_BATCH")
public class TaskExecuteBatchEntity extends BaseEntity implements Serializable {
    /**
     * 任务批次ID
     */
    @Id
    @Column(name = "TASK_BATCH_ID")
    private String taskBatchId;

    /**
     * 批次Code
     */
    @Column(name = "QR_CODE")
    private String qrCode;

    /**
     * 节点名称
     */
    @Column(name = "NODE_NAME")
    private String nodeName;

    /**
     * 下一个节点id
     */
    @Column(name = "NEXT_TASK_BATCH_ID")
    private String nextTaskBatchId;

    /**
     * 上一个节点id
     */
    @Column(name = "PRE_TASK_BATCH_ID")
    private String preTaskBatchId;

    /**
     * 文书id
     */
    @Column(name = "EMR_FILE_ID")
    private String emrFileId;

    /**
     * 状态（1，已执行，0、未执行）
     */
    @Column(name = "STATUS")
    private String status;


    /**
     * 医嘱id
     */
    @Column(name = "INPATORDERDATA_ID")
    private String inpatorderdataId;

    /**
     * 任务明细序号
     */
    @Column(name = "SERIAL_NO")
    private Integer serialNo;

    /**
     * 频次序号
     */
    @Column(name = "BATCH_NO")
    private Long batchNo;

    /**
     * 任务明细id
     */
    @Column(name = "TASK_EXECUTE_DETAIL_ID")
    private String taskExecuteDetailId;

    /**
     * 任务开始时间
     */
    @Column(name = "START_DATETIME")
    private Timestamp startDatetime;

    /**
     * 任务结束时间
     */
    @Column(name = "STOP_DATETIME")
    private Timestamp stopDatetime;

    /**
     * 静配code
     */
    @Column(name = "BAR_CODE")
    private String barCode;
    /**
     * 执行人id
     */
    @Column(name = "EXECUTE_PERSON_ID")
    private String executePersonId;

    /**
     * 关联节点id
     */
    @Column(name = "TASK_NODE_ID")
    private String taskNodeId;

    /**
     * 任务id
     */
    @Column(name = "TASK_EXECUTE_ID")
    private String taskExecuteId;

    /**
     * 转运人ID
     */
    @Column(name = "OTHER_EXECUTE_PERSON_ID")
    private String otherExecutePersonId;
    @Column(name = "BATCH_FLAG")
    private String batchFlag;

    public String getBatchFlag() {
        return batchFlag;
    }

    @Column(name = "STOP_FLAG")
    private String stopFlag;

    public String getStopFlag() {
        return stopFlag;
    }

    public void setStopFlag(String stopFlag) {
        this.stopFlag = stopFlag;
    }

    public void setBatchFlag(String batchFlag) {
        this.batchFlag = batchFlag;
    }

    public String getTaskExecuteId() {
        return taskExecuteId;
    }

    public void setTaskExecuteId(String taskExecuteId) {
        this.taskExecuteId = taskExecuteId;
    }

    public String getTaskBatchId() {
        return taskBatchId;
    }

    public void setTaskBatchId(String taskBatchId) {
        this.taskBatchId = taskBatchId;
    }

    public String getQrCode() {
        return qrCode;
    }

    public void setQrCode(String qrCode) {
        this.qrCode = qrCode;
    }

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    public String getNextTaskBatchId() {
        return nextTaskBatchId;
    }

    public void setNextTaskBatchId(String nextTaskBatchId) {
        this.nextTaskBatchId = nextTaskBatchId;
    }

    public String getPreTaskBatchId() {
        return preTaskBatchId;
    }

    public void setPreTaskBatchId(String preTaskBatchId) {
        this.preTaskBatchId = preTaskBatchId;
    }

    public String getEmrFileId() {
        return emrFileId;
    }

    public void setEmrFileId(String emrFileId) {
        this.emrFileId = emrFileId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getInpatorderdataId() {
        return inpatorderdataId;
    }

    public void setInpatorderdataId(String inpatorderdataId) {
        this.inpatorderdataId = inpatorderdataId;
    }

    public String getTaskExecuteDetailId() {
        return taskExecuteDetailId;
    }

    public void setTaskExecuteDetailId(String taskExecuteDetailId) {
        this.taskExecuteDetailId = taskExecuteDetailId;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public String getExecutePersonId() {
        return executePersonId;
    }

    public void setExecutePersonId(String executePersonId) {
        this.executePersonId = executePersonId;
    }

    public String getTaskNodeId() {
        return taskNodeId;
    }

    public void setTaskNodeId(String taskNodeId) {
        this.taskNodeId = taskNodeId;
    }

    public Integer getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(Integer serialNo) {
        this.serialNo = serialNo;
    }

    public Long getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(Long batchNo) {
        this.batchNo = batchNo;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Timestamp getStartDatetime() {
        return startDatetime;
    }

    public void setStartDatetime(Timestamp startDatetime) {
        this.startDatetime = startDatetime;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Timestamp getStopDatetime() {
        return stopDatetime;
    }

    public void setStopDatetime(Timestamp stopDatetime) {
        this.stopDatetime = stopDatetime;
    }

    public String getOtherExecutePersonId() {
        return otherExecutePersonId;
    }

    public void setOtherExecutePersonId(String otherExecutePersonId) {
        this.otherExecutePersonId = otherExecutePersonId;
    }
}